package org.polaris.authority.mapper;

import org.apache.ibatis.annotations.Param;
import org.polaris.authority.domain.Menu;
import org.polaris.basic.mapper.BaseMapper;

import java.io.Serializable;
import java.util.List;

public interface MenuMapper extends BaseMapper<Menu> {


    void deleteAllById(Serializable id);


    void saveMenus(@Param("eid")Long id,@Param("menus") List<Long> menus);

    List<Long> getMenus(Long eId);

    List<Menu> getMenuTree(Long eId);
}
